from .base import *

DEBUG = False

ALLOWED_HOSTS = ["*"]

TEMP_PATH = '/opt/tempFile/'
# TEMP_PATH = 'D:/data/upload/'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',  # 修改成MySQL数据库
        'NAME': 'tuner_marketing',  # 连接数据库名称 先创建好才能指定
        'USER': 'root',  # 数据库名称
        'PASSWORD': 'Tuner!@#qwe',  # 数据库密码
        'HOST': '192.168.0.239',  # 数据库ip 本地回环地址
        'PORT': '3306',  # 数据库端口
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
            'charset': 'utf8mb4',
        }
    }
}

KAFKA_CONF = {
    "bootstrap.servers": '192.168.1.241:9092,192.168.1.242:9092,192.168.1.243:9092',
    "group.id": 'gather-integrate',
    "enable.auto.commit": 'true',
    "auto.offset.reset": 'smallest'
}
KAFKA_TOPICS = ['integrate_video_newest', 'subclip_video', 'video_extract']


REDIS_CONFIG = {
    "host": "192.168.0.237",
    "port": 6379,
    "db": 2
}

OSS_CONFIG = {
    "endpoint": 'oss-cn-beijing.aliyuncs.com',
    "access_key_id": 'LTAI5tGU7GUqzX5AENv1T4s7',
    "access_key_secret": "hmq2mIWxBYDi6bP3af3nsRABtilzGI",
    "audio_recognition_app_key": "06fAia8LdqlpQr94"
}

BACKUP_PATH = r'/opt/tempFile'

FEISHU_NOTIFY = {
    "send_to_group_url": "http://192.168.3.183:18405/api/v1/receiver/person/send",
    "char_id": "",
}